#pragma once
#include"Protocol.hpp"

class Task
{
public:
    int sock;
    CallBack handler;//回调
    Task(int _sock):sock(_sock){}
    void ProcessOn()
    {
        handler(sock);
    }
};